<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>查看信息</title>
    <link rel="stylesheet" href="assets/css/layui.css">
    <link rel="stylesheet" href="assets/css/view.css"/>
    <link rel="stylesheet" href="assets/css/admin.css"/>
    <link rel="stylesheet" href="assets/css/style.css"/>
    <script type="text/javascript" src="js/jquery-3.1.1.min.js"></script>
    <style type="text/css">
        .layui-elem-quote{ font-size: 18px; margin-bottom: 20px;}
        .layui-input-block img{ max-height: 160px; width: auto;}
    </style>

    <script>
        $(function(){
            let id = ${sessionScope.studentId};
            alert(id);
            $.get("StudentServlet?method=studentInfo&id="+id,function (josn){
                var data = eval('('+josn+')');
                $("#StudentId").html(data.sId);
                $("#StudentName").html(data.sName);
                $("#StudentSex").html(data.sSex);
                $("#StudentSpeciality").html(data.sSpeciality);
                $("#StudentDepartment").html(data.sDepartment);
                $("#StudentEnrollYear").html(data.sEnrollYear);
                $("#clId").html(data.clId);

            });
        });
    </script>

</head>
    <body class="layui-view-body">
    <div class="layui-content">
        <!--面包屑导航-->
        <div class="mianb">
            <div class="mblf layui-col-xs6 layui-col-md6">
                <i class="layui-icon">&#xe656;</i>
                <p>个人信息管理 ><span>查看个人信息</span></p>
            </div>
        </div>
        <!--面包屑导航-->
        <blockquote class="layui-elem-quote">
            个人信息管理
        </blockquote>
        <!--岗位标题-->
        <div class="layui-row">
            <div class="layui-card positionbox">
                <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
                    <legend>个人信息</legend>
                </fieldset>
                <form class="layui-form" action="">

                    <div class="layui-form-item">
                        <label class="layui-form-label">学号</label>
                        <div class="layui-input-inline" id="StudentId">

                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">姓名</label>
                        <div class="layui-input-inline" id="StudentName">

                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">性别</label>
                        <div class="layui-input-block" id="StudentSex">

                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">专业</label>
                        <div class="layui-input-block" id="StudentSpeciality">

                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">学院</label>
                        <div class="layui-input-block" id="StudentDepartment">

                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">入学年份</label>
                        <div class="layui-input-inline" id="StudentEnrollYear">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">班级号</label>
                        <div class="layui-input-inline" id="clId">

                        </div>
                    </div>

                </form>
            </div>
        </div>
    </div>
    <script src="assets/layui.all.js"></script>
    <script>
        layui.use('form', function(){
            var form = layui.form;
            form.render();
        });
    </script>
    </body>
</html>